package youcaihuaoa.weetop.com.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.CustomListItemBean
import com.robot.base.model.NoticeBean
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.R

class NotifyItemAdapter : BaseQuickAdapter<NoticeBean, BaseViewHolder>(
    R.layout.app_item_notify
) {
    override fun convert(holder: BaseViewHolder, item: NoticeBean) {
        holder.setGone(R.id.iv_state, item.status == "1")
            .setText(R.id.tv_title, item.message_content ?: "")
            .setText(R.id.tv_time, item.create_time ?: "")
    }
}